package com.ldatum.crm.serviceImpl;

import java.util.List;

import com.ldatum.crm.dao.SellerrecordDao;
import com.ldatum.crm.daoImpl.SellerrecordDaoImpl;
import com.ldatum.crm.domain.Sellerrecord;
import com.ldatum.crm.service.SellerrecordService;

public class SellerrecordServiceImpl implements SellerrecordService {
	
	 SellerrecordDao sellerrecordDao = new SellerrecordDaoImpl();
	@Override
	public String saveSellerRecord(String cardno, double yfje,
			double xjzfje, double yhkzfje, double qtzfje, String bz, String storename)
			throws Exception {
		return sellerrecordDao.saveSellerRecord(cardno,yfje,xjzfje,yhkzfje,qtzfje,bz,storename);
	}
	@Override
	public int findTodayCostRecords() throws Exception {
		return sellerrecordDao.findTodayCostRecords();
	}
	@Override
	public int findTodayTotalMoney() throws Exception {
		return sellerrecordDao.findTodayTotalMoney();
	}
	@Override
	public List<Sellerrecord> findByCardno(String cardno) throws Exception {
		return sellerrecordDao.findByCardno(cardno);
	}
	@Override
	public List<Sellerrecord> list() throws Exception {
		return sellerrecordDao.list();
	}
	

}
